<template>
    <div>  
        <div ref="logo"> {{ logo }} </div>
         我是头部  {{  websitename }}
     </div>
</template>

<script>
    export default {
        data(){
            return {
                websitename:'我是一个神奇的web'
            }
        },
        computed:{
            logo(){
                return '我是logo'
            }
        },
        methods:{
            async getInfo(){
               let res =  await this.$api.post('/abc');
            }
        },  
        mounted(){
            console.log('hd mounted', this.$refs.logo.innerText)
            console.log('in head', this.$version)
            this.getInfo(); // 发送一个请求
        }
    }
</script>